<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<script src="//code.jquery.com/jquery-1.10.2.js"></script>
<script src="//code.jquery.com/ui/1.10.2/jquery-ui.js"></script>
<script type="text/javascript">
	function selectUnit() {
		window.open("major.do?command=selectUnitPopup", "",
				"width=500, height=400, top=100, left=400");
	}

	function writeExaminfo() {
		var majorunit_name = document.getElementById("majorunit_name").value;

		if (majorunit_name == "") {
			alert("학과를 선택하세요.");
			return;
		}

		document.getElementById("regiForm").submit();
	}
</script>
</head>
<body>
<form action="review.do" id="regiForm" method="post">
	<input type="hidden" id="command" name="command" value="writeExaminfo">
	<input type="hidden" name="majorunit_no" id="majorunit_no">
	<h2>입시 리뷰 작성하기</h2>
	학과 선택
	<input type="text" name="majorunit_name" id="majorunit_name" disabled="disabled">
	<a href="javascript:selectUnit()">검색</a><p>
	
	<a href="javascript:writeExaminfo()">다음</a>
</form>
</body>
</html>